<?php 


class NhoiComponent extends Object
{
    /**
    * Su dung ham nay de nhoi chuoi (cho viec sap xep cac muc duoc ngang nhau)
    * co the nhoi den 20 muc (200 ky tu), moi so se nhoi do dai la 10 ky tu
    * */
     function nhoichuoi($so){
        $c=$so;
        while(strlen($c)<10)
            $c='0'.$c; 
        return $c;   
     }
}
?> 